package com.demo.mappers;
import org.apache.ibatis.annotations.Param;



/**
 * @Description:帖子表:mapper
 * @Date:2025-03-01
 * @author：author
*/
public interface PostInfoMapper<T,P> extends BaseMapper {


	/**
	 * 根据PostId查询
	 */
	 T selectByPostId(@Param("postId") Long postId);

	/**
	 * 根据PostId更新
	 */
	 Integer updateByPostId(@Param("bean")T t, @Param("postId") Long postId);

	/**
	 * 根据PostId删除
	 */
	 Integer deleteByPostId(@Param("postId") Long postId);

}